home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / syscall / RCS / Ioc_ClearBits.c,v < prev    next >
Encoding:
Text File  |  1991-12-11  |  1.8 KB  |  92 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.1.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     88.06.19.14.29.16;  author ouster;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     91.12.10.16.48.22;  author kupfer;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24.  
  25. 1.1
  26. log
  27. @Initial revision
  28. @
  29. text
  30. @/* 
  31.  * Ioc_ClearBits.c --
  32.  *
  33.  *    Source code for the Ioc_ClearBits library procedure.
  34.  *
  35.  * Copyright 1988 Regents of the University of California
  36.  * Permission to use, copy, modify, and distribute this
  37.  * software and its documentation for any purpose and without
  38.  * fee is hereby granted, provided that the above copyright
  39.  * notice appear in all copies.  The University of California
  40.  * makes no representations about the suitability of this
  41.  * software for any purpose.  It is provided "as is" without
  42.  * express or implied warranty.
  43.  */
  44.  
  45. #ifndef lint
  46. static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
  47. #endif not lint
  48.  
  49. #include <sprite.h>
  50. #include <fs.h>
  51.  
  52.  
  53. /*
  54.  *----------------------------------------------------------------------
  55.  *
  56.  * Ioc_ClearBits --
  57.  *    Clear the bits indicated in the argument from the stream's
  58.  *    flag field.
  59.  *
  60.  * Results:
  61.  *    None.
  62.  *
  63.  * Side effects:
  64.  *    Clears the indicated bits.
  65.  *
  66.  *----------------------------------------------------------------------
  67.  */
  68.  
  69. ReturnStatus
  70. Ioc_ClearBits(streamID, bits)
  71.     int streamID;
  72.     int bits;
  73. {
  74.     register ReturnStatus status;
  75.  
  76.     status = Fs_IOControl(streamID, IOC_CLEAR_BITS, sizeof(int),
  77.             (Address)&bits, 0, (Address)NULL);
  78.     return(status);
  79. }
  80. @
  81.  
  82.  
  83. 1.1.1.1
  84. log
  85. @Initial branch for Sprite server.
  86. @
  87. text
  88. @d17 1
  89. a17 1
  90. static char rcsid[] = "$Header: /sprite/src/lib/c/syscall/RCS/Ioc_ClearBits.c,v 1.1 88/06/19 14:29:16 ouster Exp $ SPRITE (Berkeley)";
  91. @
  92.